home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / sgi / faq / apps < prev    next >
Internet Message Format  |  1994-04-06  |  34KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!cs.utexas.edu!news.tamu.edu!sgi-faq
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI apps Frequently Asked Questions (FAQ)
  5. Supersedes: <apps_764182743@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Apr 1994 20:11:33 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 840
  10. Approved: news-answers-request@mit.edu
  11. Expires: 4 May 1994 20:11:14 GMT
  12. Message-ID: <apps_765663074@viz.tamu.edu>
  13. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  14. NNTP-Posting-Host: viz.tamu.edu
  15. Originator: sgi-faq@viz
  16. Xref: bloom-beacon.mit.edu comp.sys.sgi.misc:9364 comp.answers:4791 news.answers:17741
  17.  
  18. Archive-name: sgi/faq/apps
  19. Last-modified: Wed Apr  6 15:10:31 CDT 1994
  20.  
  21.     SGI apps Frequently Asked Questions (FAQ)
  22.  
  23. This is one of the Silicon Graphics FAQ series, which consists of:
  24.  
  25.     SGI admin FAQ - IRIX system administration
  26.     SGI apps FAQ - Applications & compilers
  27.     SGI graphics FAQ - Graphics and user environment customization
  28.     SGI hardware FAQ - Hardware
  29.     SGI misc FAQ - Introduction & miscellaneous information
  30.     SGI performer FAQ - IRIS Performer
  31.     SGI pointer FAQ - Pointer to the other FAQs
  32.  
  33. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  34. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  35. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  36. can't find one of the FAQs with your news program, you can get it by
  37. anonymous FTP from one of these sites:
  38.  
  39.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  40.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  41.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  42.     viz.tamu.edu:/pub/sgi/faq/
  43.  
  44. Note that rtfm.mit.edu is home to many other FAQs and informational
  45. documents, and is a good place to look if you can't find an answer
  46. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  47. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  48. in the text, and it will send you a document describing how to FTP by
  49. mail. You can also read a hypertext version of the FAQs at
  50.  
  51.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  52.  
  53. The SGI FAQs are freely distributable and wide circulation is encouraged.
  54. The contents are accurate as far as we know, but the usual disclaimers
  55. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  56.  
  57. Topics covered in this FAQ:
  58. ---------------------------
  59. !  -1- Where can I find software for SGIs?
  60. +  -2- Where can I find software already compiled for SGIs?
  61.    -3- What about Explorer?
  62.    -4- WHAT TO USE?
  63.    -5- What's a good graphical text editor for SGIs?
  64. !  -6- What's a good graphical mail program for SGIs?
  65.    -7- How can I convert ASCII to PostScript?
  66.    -8- How can I preview PostScript?
  67.    -9- How can I edit PostScript files?
  68.   -10- How can I format unformatted manpages?
  69.   -11- IRIX's version of top(1) doesn't let me renice or kill processes
  70.        interactively. What to do?
  71.   -12- BUGS AND PROBLEMS
  72.   -13- Why isn't Iris Insight working properly?
  73.   -14- Why don't the arrow keys work in vi?
  74.   -15- How can I tell application X about my screen size?
  75.   -16- Why does ksh lock up if one's home directory is NFS-mounted?
  76.   -17- Why can't I 'talk' to Suns?
  77.   -18- PORTING
  78.   -19- Why can't I compile application X?
  79.   -20- Why doesn't application X understand NIS (Yellow Pages)?
  80.   -21- Where's 'ranlib'?
  81.   -22- How can I make the 'install' program work like BSD 'install'?
  82.   -23- Why does GNU Emacs not compile, or compile but not run?
  83.   -24- What do I need to do to build gcc/g++?
  84.   -25- COMPILERS AND PROGRAMMING
  85.   -26- What are the correct versions of the Irix Development Option
  86.        (IDO) and Fortran for current versions of IRIX?
  87.   -27- Where's edge in IRIX 5.x? What can I use instead?
  88.   -28- Can I use dynamic shared libraries in IRIX?
  89.   -29- How can I tell which shared objects my IRIX 5.x executable uses?
  90.   -30- How can I generate IRIX 4.0.x-compatible executables under IRIX
  91.        5.x?
  92.   -31- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  93.   -32- How can I make IRIX malloc return null on failure?
  94.   -33- Where's CHILD_MAX?
  95. + -34- What prototypes are missing in IRIX 4.0.x and 5.x?
  96.   -35- Why are some static libraries missing in IRIX 5.x?
  97.   -36- Where are the audio, CD and DAT libraries in IRIX 5.x?
  98.  
  99. ----------------------------------------------------------------------
  100.  
  101. Subject: !  -1- Where can I find software for SGIs?
  102. Date: 03 Apr 94 00:00:01 EST
  103.  
  104. Silicon Graphics can tell you about their own and third-party
  105. commercial software.  Call SGI Direct for more information; see
  106. the misc FAQ for phone numbers.
  107.  
  108. The best general reference for finding sources on the Internet is
  109. Jonathan Kamens' "Finding Sources" document. It can be FTPed from
  110. rtfm.mit.edu:/pub/usenet/news.answers/finding-sources. Read it
  111. carefully before you post a question about finding software ...
  112. because half of your answers will be "look in Archie" anyway, and
  113. "Finding Sources" tells you how to do that.
  114.  
  115. Useful general archive sites include ftp.x.org:/contrib/ for X software
  116. (and X itself), prep.ai.mit.edu:/pub/gnu/ for GNU software, and
  117. ftp.uu.net:/ and wuarchive.wustl.edu:/ for nearly anything, including
  118. archives of many Usenet sources newsgroups and mirrors of the
  119. aforementioned GNU and X archives.
  120.  
  121. The best SGI-specific reference is Bill Henderson's
  122. <billh@hampton.sgi.com> SGI anonymous FTP list. (See "What are some
  123. related network documents?" in the misc FAQ.) Good places to look, if
  124. you just feel like looking, are ftp.sgi.com:/ and sgigate.sgi.com:/,
  125. where are kept any number of freebies from the folks at SGI, and
  126. swedishchef.lerc.nasa.gov:/, a site particularly well-stocked with
  127. SGI-related materials.
  128.  
  129. Finally, see the next question for places to find precompiled software
  130. and questions (in this and the other SGI FAQs) which discuss
  131. particular packages for pointers to those packages.
  132.  
  133. ------------------------------
  134.  
  135. Subject: +  -2- Where can I find software already compiled for SGIs?
  136. Date: 03 Apr 94 00:00:01 EST
  137.  
  138. A very large stash of SGI-compiled software is at
  139. ftp.uni-stuttgart.de:/sw; look in the sgi_40 directory for IRIX 4.0.x
  140. versions and the sgi_51 directory for IRIX 5.x versions.
  141.  
  142. David Hinds <dhinds@allegro.stanford.edu> keeps a stock of GNU
  143. software compiled for IRIX 4.0.x at cb-iris.stanford.edu:/pub/gnu/.
  144. Presently it includes recent versions of emacs, gcc, gnuplot, groff,
  145. gzip and perl.
  146.  
  147. Scott Henry <scotth@sgi.com> provides recent versions of GNU Emacs and
  148. gzip compiled for IRIX 4.0.x and (pay attention here) IRIX 5.x, in
  149. 'inst' form, in sgigate.sgi.com:/net-services/gnu-emacs.
  150.  
  151. If none of the above helps, check Bill Henderson's list.  Keep in mind
  152. that many of these binaries won't be the latest version, and it's worth
  153. checking the latest version to see if IRIX support has improved.  SGI's
  154. presence is increasing rapidly and the trend is definitely toward
  155. better IRIX support.
  156.  
  157. ------------------------------
  158.  
  159. Subject:    -3- What about Explorer?
  160. Date: 24 Feb 94 00:00:01 EST
  161.  
  162. The IRIS Explorer data visualization system has its own newsgroup,
  163. comp.graphics.explorer. There is an FTP site at
  164. ftp.epcc.ac.uk:/pub/explorer/ (with a North American mirror at
  165. swedishchef.lerc.nasa.gov:/explorer/), a WWW page at
  166. http://www.nag.co.uk:70/1h/Welcome_IEC and an FAQ which you can find
  167. at any of those sites.
  168.  
  169. ------------------------------
  170.  
  171. Subject:    -4- WHAT TO USE?
  172. Date: 10 Dec 93 00:00:01 EST
  173.  
  174. The next few questions discuss software for various applications.
  175.  
  176. ------------------------------
  177.  
  178. Subject:    -5- What's a good graphical text editor for SGIs?
  179. Date: 11 Mar 94 00:00:01 EST
  180.  
  181. The most popular graphic text editors on SGIs include:
  182.  
  183. zip (by Tom Davis of SGI) is something like jot but is orders of
  184. magnitude faster and laden with nifty features. It doesn't run well
  185. remotely or at all on X-terminals, text terminals or non-SGI machines,
  186. but if most of your editing will be at an SGI console, read no
  187. further!  You can FTP it from ftp.sgi.com:/graphics/zip/. If you're
  188. using IRIX 5.x, 'zip' has replaced 'jot' and you probably didn't even
  189. need to read this question.
  190.  
  191. nedit is a straightforward graphical editor with programmers' features.
  192. It needs X-windows but not GL. Get it from fnpspb.fnal.gov:/pub/nedit/.
  193. Patches to make it work under IRIX 5.x are at
  194. viz.tamu.edu:/pub/sgi/software/nedit/nedit-on-irix-5.x.patch.
  195.  
  196. GNU Emacs, a perennial favorite, isn't just an editor; it's a way of
  197. life.  It has a X-windows mode and works on X-windows terminals as well
  198. as SGI consoles and text terminals. Its X-windows support, once rather
  199. lackluster, has improved in the recently released version 19. It may be
  200. FTPed from any GNU archive, e.g. prep.ai.mit.edu:/pub/gnu/.
  201.  
  202. Epoch is a derivative of GNU Emacs 18 with better X-windows support. It
  203. may be found at cs.uiuc.edu:/pub/epoch-files/epoch/.
  204.  
  205. Lucid Emacs is a derivative of an early version of GNU Emacs 19. It may
  206. be found at lucid.com:/pub/lemacs/. It requires graphics.
  207.  
  208. Finally, the comp.windows.x FAQ (at
  209. rtfm.mit.edu:/pub/usenet/comp.windows.x/) lists many more editors which
  210. run under X-windows, both free and commercial.
  211.  
  212. ------------------------------
  213.  
  214. Subject: !  -6- What's a good graphical mail program for SGIs?
  215. Date: 03 Apr 94 00:00:01 EST
  216.  
  217. SGI ships 'xmh' but not 'mh' (which 'xmh' needs), and it looks nasty
  218. anyway. Here are some more popular choices:
  219.  
  220. The free programs Elm and Pine are not graphical, but they are
  221. screen-oriented (they use text-based menus), easy to use, powerful and
  222. can easily be run in a separate window. They can be configured to use
  223. 'metamail' for MIME support. (MIME, described in RFC1521, is a
  224. standard for enclosing multimedia material in your mail.) Elm can be
  225. FTPed from dsinc.dsi.com:/elm/, Pine from ftp.cac.washington.edu:/pine/
  226. and 'metamail' from thumper.bellcore.com:/pub/nsb/. Elm has an FAQ (at
  227. rtfm.mit.edu:/pub/usenet/comp.mail.elm). A package which makes Elm
  228. work nicely with IRIX 4.0.5x's WorkSpace is at
  229. neutron.chem.yale.edu:/pub/elm-ws-support.shar. Note that Elm's
  230. autoreply/arepdaemon subsystem has a bad security hole, so don't
  231. install those binaries. The rest of Elm is fine.
  232.  
  233. An IRIX-friendly version of 'xmailtool' is in
  234. crocus.medicine.rochester.edu:/pub/apps/.
  235.  
  236. Z-Mail is a commercial product written by Z-Code and redistributed by
  237. SGI. IRIX 5.x includes MediaMail, a subset of Z-Mail. Both are
  238. MIME-compatible and have a text-only mode.  The PostScript file
  239. viz.tamu.edu:/pub/sgi/software/mail/zmail-vs-mediamail.ps describes
  240. the differences between Z-Mail and MediaMail.  Z-Mail/MediaMail
  241. includes 'metamail', so if you use both Z-Mail/MediaMail and Elm or
  242. Pine or another free mail program, you can save yourself some trouble
  243. by configuring the latter to use the former's 'metamail'.
  244.  
  245. Finally, Chris Lewis' "Unix Email Software - a Survey" lists many mail
  246. programs, some of which are graphical. FTP it from
  247. rtfm.mit.edu:/pub/usenet/news.answers/mail/setup/unix.
  248.  
  249. ------------------------------
  250.  
  251. Subject:    -7- How can I convert ASCII to PostScript?
  252. Date: 06 Jan 94 00:00:01 EST
  253.  
  254. - IRIX 4.0.x includes 'lptops', which, because it's called indirectly
  255.   from 'lp', isn't as well known as it ought to be. Read the 'lptops'
  256.   and 'gpsinterface' manpages.
  257.  
  258. - Adobe Transcript, which includes 'enscript' (something like 'lptops')
  259.   and 'psroff' (nroff/troff-to-PostScript) is available at extra cost
  260.   from SGI.  Most people manage without it.
  261.  
  262. - SGI's own Impressario does PostScript and a lot of other things. It
  263.   too costs extra.
  264.  
  265. - Popular free converters include 'a2ps' (at
  266.   imag.fr:/archive/postscript/), 'lwf' (in volume 15 of
  267.   comp.sources.unix, e.g.
  268.   ftp.uu.net:/usenet/comp.sources.unix/volume15/lwf/) and 'psf' (in
  269.   volume 35 of comp.sources.misc, e.g.
  270.   ftp.uu.net:/usenet/comp.sources.misc/volume35/psf3/).  The
  271.   comp.lang.postscript FAQ (at
  272.   rtfm.mit.edu:/pub/usenet/comp.lang.postscript/) has a much longer
  273.   list of such programs, unfortunately no longer including reviews or
  274.   FTP sites.
  275.  
  276. - One good way to print manpages is with the '-m' option to 'a2ps'.
  277.  
  278. ------------------------------
  279.  
  280. Subject:    -8- How can I preview PostScript?
  281. Date: 20 Mar 94 00:00:01 EST
  282.  
  283. Display Postscript (DPS), which includes the 'xpsview' PostScript
  284. previewer, is an extra-cost option from SGI. Happily, Robert Keller of
  285. SGI <rck@fangio.asd.sgi.com> has made available GNU's GhostScript
  286. previewer, compiled *and* in SGI 'inst' installable form. FTP it from
  287. ftp.sgi.com:/sgi/ghost/.
  288.  
  289. Dale Atems <atems@physics.wayne.edu> points out:
  290. Many people try ghostscript and give it up because of the fonts.  There
  291. is something about ghostscript that's not as widely known as it should
  292. be and deserves emphasis: if you have SGI's Display Postscript, you can
  293. forget about most of the ugly bitmap fonts that come with ghostscript.
  294. Edit your Fontmap file to point ghostscript to the DPS outline fonts
  295. (in /usr/lib/DPS/outline/base) and it will use them instead. This will
  296. improve both screen display and, if you're not using a Postscript
  297. printer with those fonts already built in, printing quality.
  298.  
  299. ------------------------------
  300.  
  301. Subject:    -9- How can I edit PostScript files?
  302. Date: 07 May 93 00:00:01 EST
  303.  
  304. Ivan Bach <ib@sgi.com> collected some testimonials from a number of
  305. SGIers:
  306.  
  307. - Adobe Illustrator and Corel Draw can edit PS files of type AI (a
  308.   simplified version of PS that facilitates editing).
  309.  
  310. - Transverter (from TechPool, 212-291-1922) can convert some general
  311.   PostScript files to AI PostScript. It also does other conversions,
  312.   e.g.  to TIFF.
  313.  
  314. - If you have DPS extensions on your server and a DPS compile time
  315.   environment you can do this quite well with xfig. Check out the
  316.   version in crocus.medicine.rochester.edu:/pub/apps/.
  317.  
  318. - The InterViews tool `idraw' allows manipulation of EPS (Encapsulated
  319.   PostScript) files, and has a `mac-type' interface.
  320.  
  321. - Island Draw 3.0 has an option to import Postscript, and it seems to
  322.   accept arbitrary Postscript.  I have fed it single page Postcript
  323.   files from Illustrator, Corel, Ventura, Designer, Eroff, and
  324.   hand-coded files, and it made Island Draw objects out of them.  The
  325.   file initially opens as one grouped object, but if you ungroup, you
  326.   get editable objects.  I was quite impressed.  I don't doubt there
  327.   are ways to fool the interpreter, but it works for output from
  328.   drawing and publishing packages, which is what I need it for.
  329.  
  330. ------------------------------
  331.  
  332. Subject:   -10- How can I format unformatted manpages?
  333. Date: 07 May 93 00:00:01 EST
  334.  
  335. SGI provides manpages in formatted form, and does not therefore need to
  336. provide us all with the formatting software. Most FTPable software,
  337. however, comes with unformatted manpages.
  338.  
  339. Manpages are most often formatted with Documenter's Workbench (DWB),
  340. which SGI has had to license separately from USL and we have to buy
  341. separately from SGI.  SGI's DWB is based on version 2.1; the current
  342. version from USL is 3.3.
  343.  
  344. Public domain alternatives to DWB include 'groff' and 'awf':
  345.  
  346. 'groff' is by the Free Software Foundation and can be had from any GNU
  347. archive (e.g. prep.ai.mit.edu:/pub/gnu/).  Compilers beware: it must be
  348. compiled with g++ (or another C++ compiler?). However, there are
  349. compiled binaries in cb-iris.stanford.edu:/pub/gnu/.  David Hinds
  350. <dhinds@allegro.stanford.edu>, the man who put them there, gives this
  351. advice for installing groff so that it can format manpages on the fly:
  352.  
  353. Create a script called 'eqn':
  354.  
  355.  > #!/bin/sh
  356.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  357.  > geqn $*
  358.  
  359. and a script called 'neqn':
  360.  
  361.  > #!/bin/sh
  362.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  363.  > geqn -Tascii $*
  364.  
  365. and do:
  366.  
  367.  > ln -s gnroff nroff
  368.  
  369. and edit the end of the gnroff script to be:
  370.  
  371.  > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  372.  > exec groff -Wall -mtty-char $T $opts $rest
  373.  
  374. To get PostScript output from 'man -t', you also need to create a
  375. 'psroff' script similar to 'nroff'.  Here are the context diffs:
  376.  
  377. *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
  378. --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
  379. ***************
  380. *** 1,8 ****
  381.   #!/bin/sh
  382. ! # Emulate nroff with groff.
  383.  
  384.   prog="$0"
  385. ! T=-Tascii
  386.   opts=
  387.  
  388.   for i
  389. --- 1,8 ----
  390.   #!/bin/sh
  391. ! # Emulate psroff with groff.
  392.  
  393.   prog="$0"
  394. ! T=-Tps
  395.   opts=
  396.  
  397.   for i
  398. ***************
  399. *** 25,30 ****
  400. --- 25,33 ----
  401.         -Tascii|-Tlatin1)
  402.                 T=$1
  403.                 ;;
  404. +       -t)
  405. +               # ignore -- default is send to stdout
  406. +               ;;
  407.         -T*)
  408.                 # ignore other devices
  409.                 ;;
  410. ***************
  411. *** 49,53 ****
  412.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  413.  
  414.   # This shell script is intended for use with man, so warnings are
  415.   # probably not wanted.  Also load nroff-style character definitions.
  416. ! exec groff -Wall -mtty-char $T $opts $rest
  417. --- 52,56 ----
  418.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  419.  
  420.   # This shell script is intended for use with man, so warnings are
  421. ! # probably not wanted.
  422. ! exec groff -Wall $T $opts $rest
  423.  
  424. The binaries on cb-iris.stanford.edu have these changes already made.
  425.  
  426. Henry Spencer's awf ("Amazingly Workable Formatter") is written in
  427. 'awk', which we all have, and does a pretty good job, considering. It
  428. can be FTPed from fresnel.stanford.edu:/pub/4D/.
  429.  
  430. Finally, you might be able to format them on a non-SGI machine which
  431. does have nroff. You might need to specify the generic printer macros
  432. with '-Tlp', i.e. 'nroff -man -Tlp foo.1 > foo'.
  433.  
  434. ------------------------------
  435.  
  436. Subject:   -11- IRIX's version of top(1) doesn't let me renice or kill
  437.                 processes interactively. What to do?
  438. Date: 10 Dec 93 00:00:01 EST
  439.  
  440. Try William LeFebvre's <phil@eecs.nwu.edu> version, which has these
  441. capabilities. FTP it from eecs.nwu.edu:/pub/top/. One port to IRIX is
  442. at ftp.cs.ruu.nl:/pub/SGI/top-3.1.tar.gz.
  443.  
  444. ------------------------------
  445.  
  446. Subject:   -12- BUGS AND PROBLEMS
  447. Date: 10 Dec 93 00:00:01 EST
  448.  
  449. This section discusses bugs and problems with various applications.
  450.  
  451. ------------------------------
  452.  
  453. Subject:   -13- Why isn't Iris Insight working properly?
  454. Date: 10 Dec 93 00:00:01 EST
  455.  
  456. Iris Insight 2.0 (which came on a CD included in the July/August
  457. Pipeline) uses a different format in the .insightrc file in your home
  458. directory. If there is an .insightrc left over from an older version
  459. when you run Insight 2.0, it may emit error messages or not work in
  460. various ways. Just delete the old .insightrc and restart Insight.
  461.  
  462. Greg Ferguson <gferg@hoop.timonium.sgi.com> keeps a list of other
  463. problems with Insight, which can be found at
  464. viz.tamu.edu:/pub/sgi/lists/insight-problems.
  465.  
  466. ------------------------------
  467.  
  468. Subject:   -14- Why don't the arrow keys work in vi?
  469. Date: 10 Dec 93 00:00:01 EST
  470.  
  471. Arrow keys send more than one character, and vi can misinterpret them
  472. as multiple single-character commands on slow connections. Increase
  473. vi's patience by putting the command 'set timeout=400' (or a larger or
  474. smaller number to your taste) in the file ~/.exrc or the EXINIT
  475. environment variable.  See also the ex(1) and vi(1) manpages.
  476.  
  477. Or use h, j, k and l. Or zip or Emacs.
  478.  
  479. ------------------------------
  480.  
  481. Subject:   -15- How can I tell application X about my screen size?
  482. Date: 10 Dec 93 00:00:01 EST
  483.  
  484. IRIX does not have 'stty rows n' or 'stty columns n'. Use 'setenv LINES
  485. n' and 'setenv COLUMS n' respectively.
  486.  
  487. ------------------------------
  488.  
  489. Subject:   -16- Why does ksh lock up if one's home directory is NFS-
  490.                 mounted?
  491. Date: 21 Jan 94 00:00:01 EST
  492.  
  493. Sez Dave Olson <olson@sgi.com>:
  494. Since all ksh sessions for the same user write to the same file, ksh
  495. uses locking on the history file.  Locking over NFS is problematic at
  496. best.  There is an environment variable (HISTFILE) that can be set to
  497. specify where the history file lives; I would suggest putting it
  498. somewhere on the local disk.
  499.  
  500. ------------------------------
  501.  
  502. Subject:   -17- Why can't I 'talk' to Suns?
  503. Date: 16 Mar 94 00:00:01 EST
  504.  
  505. SGI, and most Unix vendors, use the 4.3BSD talk protocol, while Sun
  506. still uses the 4.2BSD talk protocol. The fault is Sun's, not SGI's.
  507. Look in thor.ece.uc.edu:/pub/sun-faq/ for Sun-compatible versions of
  508. 'new talk' (ntalk.tar.Z) and 'ytalk', which speaks both old and new
  509. 'talk' (ytalk-3.0.1.tar.gz).
  510.  
  511. You could also run 'ytalk' on your SGI. Get it from
  512. ftp.uu.net:/usenet/comp.sources.unix/volume27/ytalk-3.0/.
  513.  
  514. ------------------------------
  515.  
  516. Subject:   -18- PORTING
  517. Date: 10 Dec 93 00:00:01 EST
  518.  
  519. This section discusses how to port 'found' software: usually free,
  520. written by someone else and probably not written explicitly for SGIs.
  521.  
  522. ------------------------------
  523.  
  524. Subject:   -19- Why can't I compile application X?
  525. Date: 12 Jan 94 00:00:01 EST
  526.  
  527. Plenty of reasons, but here are some of the most common:
  528.  
  529. - SGI's C compiler is ANSI C by default in IRIX 4.0.x. Use the '-cckr'
  530.   option to compile K&R C. You can do this most easily by setting the
  531.   environment variable SGI_CC to "-cckr" or by editing the
  532.   application's Makefile, often by adding "-cckr" to the CFLAGS
  533.   variable.
  534.  
  535. - A related problem is that Makefiles generated by 'imake' most often
  536.   use 'cc -cckr -prototypes'; missing or incorrect prototypes usually
  537.   just generate pages of warnings but may cause an unrecoverable error.
  538.   This can often be worked around by removing "-prototypes" from the
  539.   line where it appears in the Makefile (not the Imakefile).
  540.  
  541. - You need the libPW.a library, which contains the regcmp and regex
  542.   functions.  Add '-lPW' to your linking command.
  543.  
  544. - You're linking X libraries, which have complex interdependencies, in
  545.   the wrong order. Mark Kilgard <mjk@hoot.asd.sgi.com> provided this
  546.   handy chart:
  547.  
  548.  
  549.   libXm--libXirisw
  550.                   \
  551.                    libXt--libXmu--libgl--libXi--libXext--libX11
  552.                   /
  553.             libXaw
  554.  
  555.   Libraries should be listed in the same order on the cc or ld command
  556.   line, left to right, as they appear above. If you don't use routines
  557.   from a library, of course, you don't need it.
  558.  
  559. - Some header files were in both the dev.hdr.lib subsystem (which is
  560.   part of IDO) and eoe1.sw.unix (which is part of basic IRIX) in IRIX
  561.   4.0.5, but are not in dev.hdr.lib in IDO 4.1 and 4.1.1. If one
  562.   removes an older IDO then installs IDO 4.1(.1), these headers will
  563.   disappear.  The solution is to reinstall eoe1.sw.unix. Affected
  564.   headers are all in /usr/include/sys, and include domain.h, fddi.h,
  565.   if_imf.h, if_ipg.h, if_mf.h, if_sl.h, llc.h, mbuf.h, protosw.h,
  566.   smt.h, socket.h, socketvar.h, tcp-param.h, uio.h, un.h, and unpcb.h.
  567.  
  568. - There may be dependency lines in a Makefile which begin with spaces.
  569.   Some 'make's accept spaces; SGI's requires tabs.
  570.  
  571. - You may be running into one of the many popular bugs in IDO 4.1. See
  572.   "COMPILERS AND PROGRAMMING".
  573.  
  574. ------------------------------
  575.  
  576. Subject:   -20- Why doesn't application X understand NIS (Yellow Pages)?
  577. Date: 19 Dec 93 00:00:01 EST
  578.  
  579. If you run NIS (aka Yellow Pages), you need to link programs which
  580. access files served by NIS with -lsun. The functions in libc.a which
  581. deal with these files are not NIS-aware; the NIS versions are in
  582. libsun.a. Using libsun.a usually means adding '-lsun' to the variable
  583. LIBS or LDFLAGS in one's Makefile. If '-lc' or '-lc_s' (libc_s.a is
  584. the shared version of libc.a) is given explicitly, '-lsun' must precede
  585. it.
  586.  
  587. This is only true for IRIX 4.0.x; IRIX 5.x's libc.a is NIS-aware.
  588.  
  589. ------------------------------
  590.  
  591. Subject:   -21- Where's 'ranlib'?
  592. Date: 16 Sep 93 00:00:01 EST
  593.  
  594. IRIX doesn't need it. Read the description of the 's' option in the
  595. 'ar' manpage. When the Makefile for a program you're porting wants
  596. ranlib, substitute 'true' or put a little shell script in your PATH to
  597. fake it.
  598.  
  599. ------------------------------
  600.  
  601. Subject:   -22- How can I make the 'install' program work like BSD
  602.                 'install'?
  603. Date: 16 Jun 93 00:00:01 EST
  604.  
  605. The BSD and System V versions of the 'install' command are
  606. incompatible; the BSD version is most often used by Makefiles. IRIX
  607. provides both the System V version (/etc/install) and the BSD version
  608. (/usr/bin/X11/bsdinst.sh). SGI's 'imake' defines INSTALL as
  609. /usr/bin/X11/bsdinst.sh, and the Install* rules use that definition, so
  610. Imakefile-generated Makefiles will use the BSD version.
  611.  
  612. Michael Joosten <joost@ori.cadlab.de> points out that you can also use
  613. GNU install (available from any GNU archive, e.g.
  614. prep.ai.mit.edu:/pub/gnu/), which emulates the BSD version.  Unlike
  615. /usr/bin/X11/bsdinst.sh, it has a manpage.  It also may be better
  616. debugged; SGI's version reportedly mishandles '-o' and installs
  617. multiple files into a single directory.
  618.  
  619. ------------------------------
  620.  
  621. Subject:   -23- Why does GNU Emacs not compile, or compile but not run?
  622. Date: 20 Jan 94 00:00:01 EST
  623.  
  624. You probably have an old version.
  625.  
  626. Emacs 18.59 is the last release of Emacs version 18. It builds and runs
  627. correctly under IRIX 4.0.x. Some earlier versions failed to compile
  628. (because cc now needs -cckr for K&R C compatibility) or failed to run
  629. when stripped (because of object file format changes). For the latter
  630. reasion, the file unexmips.c in some versions of Epoch and Lucid Emacs
  631. should be replaced with the same-named file from the GNU Emacs 18.59
  632. distribution.
  633.  
  634. Karsten Kuenne <kuenne@desy.de> has patched Emacs 18.59 to work with
  635. IRIX 5.0's new object file format. The patches are at
  636. ftp.desy.de:/pub/gnu/emacs/emacs-irix5.0-patches.
  637.  
  638. Emacs 19.22 is the most recent release of Emacs version 19 at this
  639. writing; it builds and runs correctly under IRIX 4.0.x and 5.x with
  640. recent compilers (IDO 4.1.1 or newer). Be sure to read about Iris
  641. quirks in etc/MACHINES. You may need to say 'configure
  642. mips-sgi-irix5.1' instead of 'configure mips-sgi-irix5' to work around
  643. a small 'configure' bug. If you want to use dbx on Emacs 19.22, you
  644. need viz.tamu.edu:/pub/sgi/software/emacs/unexelfsgi.c.patch.
  645.  
  646. See also "Where can I get software already compiled for SGIs?" above.
  647.  
  648. ------------------------------
  649.  
  650. Subject:   -24- What do I need to do to build gcc/g++?
  651. Date: 12 Jan 94 00:00:01 EST
  652.  
  653. Recent versions of gcc build reliably on IRIX 4.0.x and 5.x without
  654. difficulty.  Just read the INSTALL document and follow the directions.
  655. A few hints:
  656.  
  657. - You need the headers and runtime libraries from SGI's extra-cost
  658.   development option both to compile and use gcc. (glibc does not yet
  659.   work on SGIs.) Of course if you buy the development option you'll get
  660.   SGI's compiler anyway; this is comp.sys.sgi.*'s most popular
  661.   Catch-22.
  662.  
  663. - Don't forget to install the dev.cmplrs_hdr.internal subsystem, which
  664.   contains needed headers and is not installed by default.
  665.  
  666. - You'll need up to 80Mb of free disk space. You can manage with as
  667.   little as 50Mb by compiling without "-g", stripping binaries and
  668.   pruning after each build stage.
  669.  
  670. _ If you are using IDO 4.1, use the 'mips-sgi-irix4loser'
  671.   configuration, which disables optimization to avoid an assembler bug,
  672.   or use the 'noasmopt' flag to gcc. This is not necessary with IDO
  673.   4.1.1.
  674.  
  675. - If you are using IDO 5.1, don't use GNU's binutils ('ar' and 'ld') to
  676.   build gcc. Use the IRIX versions.
  677.  
  678. - gcc's '-g' option (include debugging info) does not work on IRIX 5.x.
  679.   This is not a bug, but an absence of support. '-g' will work when
  680.   someone ports GNU's 'gas' to IRIX 5.x or explicitly writes ELF
  681.   support into gcc.
  682.  
  683. See also "Where can I get software already compiled for SGIs?" above.
  684.  
  685. ------------------------------
  686.  
  687. Subject:   -25- COMPILERS AND PROGRAMMING
  688. Date: 10 Dec 93 00:00:01 EST
  689.  
  690. This section discusses compilers and programming issues.  Check the
  691. graphics FAQ for graphics programming issues, and the Performer FAQ for
  692. Performer issues.
  693.  
  694. ------------------------------
  695.  
  696. Subject:   -26- What are the correct versions of the Irix Development
  697.                 Option (IDO) and Fortran for current versions of IRIX?
  698. Date: 15 Feb 94 00:00:01 EST
  699.  
  700. If you're using IRIX 4.0.x, you should be using IDO 4.1.1.  It includes
  701. C 3.10.1 and the 3.12 back-end (the part of the compiler which actually
  702. produces the executable; 3.12 is the number you see when you use the
  703. 'file' command on an executable). IDO 4.1 (C 3.10 and the 3.10
  704. back-end) was buggy; upgrade to 4.1.1 ASAP. IDO 4.0.1 (with the 2.40
  705. back-end) was the last stable release before IDO 4.1.x and is still
  706. acceptable. IRIX 5.1 requires IDO 5.1.
  707.  
  708. Each version of IDO has a corresponding version of Fortran, and they
  709. MUST be used together. IDO 4.1.1 needs Fortran 3.5.1 and IDO 5.1 needs
  710. Fortran 4.0.
  711.  
  712. ------------------------------
  713.  
  714. Subject:   -27- Where's edge in IRIX 5.x? What can I use instead?
  715. Date: 02 Feb 94 00:00:01 EST
  716.  
  717. SGI does not include edge with IRIX 5.x. When asked for substitutes,
  718. SGI will direct you to their CASEVision debugger, which costs extra.
  719. An oft-mentioned free graphical debugger is 'xdbx'; it can be FTPed
  720. from ftp.x.org and a patch to make it work on SGIs is at
  721. viz.tamu.edu:/pub/sgi/software/xdbx/xdbx.sgi.patch.
  722.  
  723. ------------------------------
  724.  
  725. Subject:   -28- Can I use dynamic shared libraries in IRIX?
  726. Date: 07 May 93 00:00:01 EST
  727.  
  728. IRIX 5.x supports SVR4-style dynamic shared libraries. IRIX 4.0.x does
  729. not, but Jack Jansen <jack@cwi.nl> has written a package to do it
  730. anyway. Get the file ftp.cwi.nl:/pub/dl-1.3.tar.Z by anonymous FTP.
  731.  
  732. ------------------------------
  733.  
  734. Subject:   -29- How can I tell which shared objects my IRIX 5.x
  735.                 executable uses?
  736. Date: 10 Dec 93 00:00:01 EST
  737.  
  738. Tom Weinstein <tomw@orac.esd.sgi.com> reveals the truth:  Use
  739. elfdump(1), which is in the dev.cmplrs_sw.util subsystem. The -Dl flag
  740. lists shared object dependencies, and there are other flags that do
  741. other things.
  742.  
  743. ------------------------------
  744.  
  745. Subject:   -30- How can I generate IRIX 4.0.x-compatible executables
  746.                 under IRIX 5.x?
  747. Date: 10 Dec 93 00:00:01 EST
  748.  
  749. Strictly speaking, you can't. Many things changed in IRIX 5.x. You can,
  750. however generate executables in COFF (IRIX 4.0.x) format instead of ELF
  751. (IRIX 5.x) format, and these will often work on IRIX 4.0.x if they
  752. don't use complex things like multiprocessing. The manual and release
  753. notes describe how, and here's a summary:
  754.  
  755. 1) Make sure you've installed all of the appropriate irix4
  756.    compatibility subsystems. These include irix4_eoe, irix4_dev,
  757.    irix4_c and others for Motif, Inventor, etc.
  758.  
  759. 2) setenv SGI_IRIX4 1
  760.  
  761. 3) If your source uses explicit paths to headers, libraries, etc.,
  762.    change them to point to the irix4 versions.
  763.  
  764. 4) Use cc or make or whatever as you normally would.
  765.  
  766. ------------------------------
  767.  
  768. Subject:   -31- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  769. Date: 17 Jan 94 00:00:01 EST
  770.  
  771. Sez Jay McCauley <mccauley@sgi.com>:
  772. IRIX does not and cannot have a coff2elf (actually, it's 'cof2elf')
  773. converter.  The COFF (actually, ECOFF) to ELF transition was also the
  774. transition to the use of Expanded Fundamental Types (EFT), an
  775. SVR4-ism.  EFT enlarges a number of basic data types, finally casting
  776. off the last vestages of the PDP-11.  So, structures built in an EFT
  777. world would have their members at different offsets than they would in
  778. a pre-EFT (e.g. IRIX 4.x) world. The operating system uses the fact
  779. that an executable is in ELF to trigger the use of EFT-based strucures
  780. for input and output.  So, even if you had a program like coff2elf,
  781. the resulting transformed executable would not operate correctly for
  782. almost any interesting case.  Trivial programs that don't have any
  783. system calls which pass in structures or get structures back from the
  784. OS could theoretically work, but these fall into the "uninteresting"
  785. class.
  786.  
  787. ------------------------------
  788.  
  789. Subject:   -32- How can I make IRIX malloc return null on failure?
  790. Date: 23 Jan 94 00:00:01 EST
  791.  
  792. SGI's malloc(), by default, does not return NULL if there's not enough
  793. virtual memory around to allocate the requested space;  instead the
  794. program is killed if and when it touches an unavailable page. To make
  795. malloc() behave more conventionally -- to return NULL if the space is
  796. not available -- set the kernel variable availsmem_accounting (in
  797. /usr/sysgen/master.d/kernel, or via 'systune' in IRIX 5.x) to 1 and
  798. rebuild your kernel.
  799.  
  800. ------------------------------
  801.  
  802. Subject:   -33- Where's CHILD_MAX?
  803. Date: 21 Jan 94 00:00:01 EST
  804.  
  805. /usr/include/limits.h has a bug in all versions of IRIX 4.0.5. The
  806. definition of ARG_MAX on line 92 is missing a closing comment, so the
  807. definition of CHILD_MAX on line 93 is ignored. Line 92
  808.  
  809. #define    ARG_MAX        5120         /* max length of arguments to exec 
  810.  
  811. should look like this:
  812.  
  813. #define    ARG_MAX        5120         /* max length of arguments to exec */
  814.  
  815. ------------------------------
  816.  
  817. Subject: + -34- What prototypes are missing in IRIX 4.0.x and 5.x?
  818. Date: 03 Apr 94 00:00:01 EST
  819.  
  820. Kevin Russo <russo@rudedog.nrl.navy.mil> has compiled a list, which
  821. you can FTP from
  822. viz.tamu.edu:/pub/sgi/software/prototypes/missing-protos.shar.
  823.  
  824. ------------------------------
  825.  
  826. Subject:   -35- Why are some static libraries missing in IRIX 5.x?
  827. Date: 05 Feb 94 00:00:01 EST
  828.  
  829. IRIX 5.x does not have static (non-shared) versions of some libraries,
  830. notably libX11.a. This is only a problem if one needs to name one
  831. explicitly in a linking statement; just use the shared version (in this
  832. case, libX11.so.1).
  833.  
  834. But *why* are they missing? 1) The shared versions (but not the static
  835. versions) are specified in the MIPS ABI, with which IRIX 5.x complies.
  836. 2) SGI can tune system-dependent aspects of the libraries without
  837. losing binary compatibility between different SGI machines and with
  838. other MIPS ABI-compliant platforms. 2) The library interfaces are
  839. stable, so there is no need to link them statically. 3) It forces us
  840. all to use the shared versions with the attendant benefits: less disk
  841. and memory usage and better portability.
  842.  
  843. ------------------------------
  844.  
  845. Subject:   -36- Where are the audio, CD and DAT libraries in IRIX 5.x?
  846. Date: 05 Mar 94 00:00:01 EST
  847.  
  848. In IRIX 5.x, they (and the associated headers, sample code, etc.) have
  849. moved to the extra-cost Digital Media Development option. Sorry.
  850.  
  851. ------------------------------
  852.  
  853. End of sgi/faq/apps Digest
  854. ******************************
  855. -- 
  856. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  857. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  858.